Skip to content

Conversation

tge25
Copy link
Contributor

@tge25 tge25 commented Jun 12, 2025

Patch-base support for deterministic sampler

Description

Enable patch-base inference with deterministic sampler.
Stochastic sampler cleanup.

Closes #345 .

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.
  • The CHANGELOG.md is up to date with these changes.
  • An issue is linked to this pull request.

Dependencies

Copy link
Collaborator

@CharlelieLrt CharlelieLrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good to me. A few things to improve:

  • Better tests that use actual networks rather than mock networks. Also need to test patching + lead-time + deterministic sampler.
  • A possible bug in the embedding selector defined in the deterministic (and the stochastic) samplers --> to double-check
  • A few details in the docs that will not render properly and that need to be fixed.

@CharlelieLrt CharlelieLrt changed the title Add patch-base support for deterministic sampler Add patch-based support for deterministic sampler Jul 23, 2025
Copy link
Collaborator

@CharlelieLrt CharlelieLrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for addressing my previous comments!
I spotted a few more details in deterministic_sampler (missing calls to compiled wrappers, ...) as well as a couple of issues in the new tests that you added.

@CharlelieLrt
Copy link
Collaborator

/blossom-ci

@tge25 tge25 requested a review from CharlelieLrt July 28, 2025 09:11
Copy link
Collaborator

@CharlelieLrt CharlelieLrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you for the contribution @tge25 !

@CharlelieLrt
Copy link
Collaborator

/blossom-ci

@tge25
Copy link
Contributor Author

tge25 commented Jul 29, 2025

/blossom-ci

1 similar comment
@CharlelieLrt
Copy link
Collaborator

/blossom-ci

@tge25
Copy link
Contributor Author

tge25 commented Jul 29, 2025

/blossom-ci

1 similar comment
@tge25
Copy link
Contributor Author

tge25 commented Jul 29, 2025

/blossom-ci

@CharlelieLrt
Copy link
Collaborator

/blossom-ci

…stic_sampler

Signed-off-by: Charlelie Laurent <claurent@nvidia.com>
Signed-off-by: Charlelie Laurent <claurent@nvidia.com>
@CharlelieLrt
Copy link
Collaborator

/blossom-ci

Signed-off-by: Charlelie Laurent <claurent@nvidia.com>
Signed-off-by: Charlelie Laurent <claurent@nvidia.com>
@CharlelieLrt
Copy link
Collaborator

/blossom-ci

@CharlelieLrt CharlelieLrt merged commit 711ba45 into NVIDIA:main Jul 30, 2025
1 check passed
coreyjadams pushed a commit to coreyjadams/physicsnemo that referenced this pull request Aug 1, 2025
* add patching support for determinstic sampler

* code cleanup and unit test update

* use patching wraper and fix pytest functions

* change utils.generative to utils.diffusion

* set default to torch.float64

* do compilation in determinstic sampler

* update

* Identified and fixed critical bug in stochastic_sampler and deterministic_sampler

Signed-off-by: Charlelie Laurent <claurent@nvidia.com>

* Format CHANGELOG.md

Signed-off-by: Charlelie Laurent <claurent@nvidia.com>

* Implements wrapper selector to fix compile issues in tests

Signed-off-by: Charlelie Laurent <claurent@nvidia.com>

---------

Signed-off-by: Charlelie Laurent <claurent@nvidia.com>
Co-authored-by: root <root@cw-dfw-h100-004-251-012.cm.cluster>
Co-authored-by: Charlelie Laurent <84199758+CharlelieLrt@users.noreply.github.com>
Co-authored-by: root <root@cw-dfw-h100-004-211-033.cm.cluster>
Co-authored-by: root <root@cw-dfw-h100-004-270-026.cm.cluster>
Co-authored-by: Charlelie Laurent <claurent@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team Earth-2 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🚀[FEA]: patch-based corrdiff generation for deterministic sampler
2 participants